﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;

namespace MadPropsDemo
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            CommandsBase.RescueAction = ex =>
            {
                var window = new System.Windows.Window();
                window.Title = "Poor Man's Message Box";
                window.Height = 200;
                window.Width = 400;
                window.Content = ex.Message;
                window.ShowDialog();
                return true;
            };
        }
    }
}
